{"ast":null,"code":"var __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport EllipsisOutlined from \"@ant-design/icons/es/icons/EllipsisOutlined\";\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport Button from '../button';\nimport { ConfigContext } from '../config-provider';\nimport { useCompactItemContext } from '../space/Compact';\nimport Dropdown from './dropdown';\nimport Space from '../space';\nimport useStyle from './style';\nconst DropdownButton = props => {\n  const {\n    getPopupContainer: getContextPopupContainer,\n    getPrefixCls,\n    direction\n  } = React.useContext(ConfigContext);\n  const {\n      prefixCls: customizePrefixCls,\n      type = 'default',\n      danger,\n      disabled,\n      loading,\n      onClick,\n      htmlType,\n      children,\n      className,\n      menu,\n      arrow,\n      autoFocus,\n      overlay,\n      trigger,\n      align,\n      open,\n      onOpenChange,\n      placement,\n      getPopupContainer,\n      href,\n      icon = /*#__PURE__*/React.createElement(EllipsisOutlined, null),\n      title,\n      buttonsRender = buttons => buttons,\n      mouseEnterDelay,\n      mouseLeaveDelay,\n      overlayClassName,\n      overlayStyle,\n      destroyPopupOnHide,\n      dropdownRender\n    } = props,\n    restProps = __rest(props, [\"prefixCls\", \"type\", \"danger\", \"disabled\", \"loading\", \"onClick\", \"htmlType\", \"children\", \"className\", \"menu\", \"arrow\", \"autoFocus\", \"overlay\", \"trigger\", \"align\", \"open\", \"onOpenChange\", \"placement\", \"getPopupContainer\", \"href\", \"icon\", \"title\", \"buttonsRender\", \"mouseEnterDelay\", \"mouseLeaveDelay\", \"overlayClassName\", \"overlayStyle\", \"destroyPopupOnHide\", \"dropdownRender\"]);\n  const prefixCls = getPrefixCls('dropdown', customizePrefixCls);\n  const buttonPrefixCls = `${prefixCls}-button`;\n  const [wrapSSR, hashId] = useStyle(prefixCls);\n  const dropdownProps = {\n    menu,\n    arrow,\n    autoFocus,\n    align,\n    disabled,\n    trigger: disabled ? [] : trigger,\n    onOpenChange,\n    getPopupContainer: getPopupContainer || getContextPopupContainer,\n    mouseEnterDelay,\n    mouseLeaveDelay,\n    overlayClassName,\n    overlayStyle,\n    destroyPopupOnHide,\n    dropdownRender\n  };\n  const {\n    compactSize,\n    compactItemClassnames\n  } = useCompactItemContext(prefixCls, direction);\n  const classes = classNames(buttonPrefixCls, compactItemClassnames, className, hashId);\n  if ('overlay' in props) {\n    dropdownProps.overlay = overlay;\n  }\n  if ('open' in props) {\n    dropdownProps.open = open;\n  }\n  if ('placement' in props) {\n    dropdownProps.placement = placement;\n  } else {\n    dropdownProps.placement = direction === 'rtl' ? 'bottomLeft' : 'bottomRight';\n  }\n  const leftButton = /*#__PURE__*/React.createElement(Button, {\n    type: type,\n    danger: danger,\n    disabled: disabled,\n    loading: loading,\n    onClick: onClick,\n    htmlType: htmlType,\n    href: href,\n    title: title\n  }, children);\n  const rightButton = /*#__PURE__*/React.createElement(Button, {\n    type: type,\n    danger: danger,\n    icon: icon\n  });\n  const [leftButtonToRender, rightButtonToRender] = buttonsRender([leftButton, rightButton]);\n  return wrapSSR( /*#__PURE__*/React.createElement(Space.Compact, Object.assign({\n    className: classes,\n    size: compactSize,\n    block: true\n  }, restProps), leftButtonToRender, /*#__PURE__*/React.createElement(Dropdown, Object.assign({}, dropdownProps), rightButtonToRender)));\n};\nDropdownButton.__ANT_BUTTON = true;\nexport default DropdownButton;","map":{"version":3,"names":["__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","EllipsisOutlined","classNames","React","Button","ConfigContext","useCompactItemContext","Dropdown","Space","useStyle","DropdownButton","props","getPopupContainer","getContextPopupContainer","getPrefixCls","direction","useContext","prefixCls","customizePrefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","href","icon","createElement","title","buttonsRender","buttons","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender","restProps","buttonPrefixCls","wrapSSR","hashId","dropdownProps","compactSize","compactItemClassnames","classes","leftButton","rightButton","leftButtonToRender","rightButtonToRender","Compact","assign","size","block","__ANT_BUTTON"],"sources":["/data/messenger.client/node_modules/antd/es/dropdown/dropdown-button.js"],"sourcesContent":["var __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport EllipsisOutlined from \"@ant-design/icons/es/icons/EllipsisOutlined\";\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport Button from '../button';\nimport { ConfigContext } from '../config-provider';\nimport { useCompactItemContext } from '../space/Compact';\nimport Dropdown from './dropdown';\nimport Space from '../space';\nimport useStyle from './style';\nconst DropdownButton = props => {\n  const {\n    getPopupContainer: getContextPopupContainer,\n    getPrefixCls,\n    direction\n  } = React.useContext(ConfigContext);\n  const {\n      prefixCls: customizePrefixCls,\n      type = 'default',\n      danger,\n      disabled,\n      loading,\n      onClick,\n      htmlType,\n      children,\n      className,\n      menu,\n      arrow,\n      autoFocus,\n      overlay,\n      trigger,\n      align,\n      open,\n      onOpenChange,\n      placement,\n      getPopupContainer,\n      href,\n      icon = /*#__PURE__*/React.createElement(EllipsisOutlined, null),\n      title,\n      buttonsRender = buttons => buttons,\n      mouseEnterDelay,\n      mouseLeaveDelay,\n      overlayClassName,\n      overlayStyle,\n      destroyPopupOnHide,\n      dropdownRender\n    } = props,\n    restProps = __rest(props, [\"prefixCls\", \"type\", \"danger\", \"disabled\", \"loading\", \"onClick\", \"htmlType\", \"children\", \"className\", \"menu\", \"arrow\", \"autoFocus\", \"overlay\", \"trigger\", \"align\", \"open\", \"onOpenChange\", \"placement\", \"getPopupContainer\", \"href\", \"icon\", \"title\", \"buttonsRender\", \"mouseEnterDelay\", \"mouseLeaveDelay\", \"overlayClassName\", \"overlayStyle\", \"destroyPopupOnHide\", \"dropdownRender\"]);\n  const prefixCls = getPrefixCls('dropdown', customizePrefixCls);\n  const buttonPrefixCls = `${prefixCls}-button`;\n  const [wrapSSR, hashId] = useStyle(prefixCls);\n  const dropdownProps = {\n    menu,\n    arrow,\n    autoFocus,\n    align,\n    disabled,\n    trigger: disabled ? [] : trigger,\n    onOpenChange,\n    getPopupContainer: getPopupContainer || getContextPopupContainer,\n    mouseEnterDelay,\n    mouseLeaveDelay,\n    overlayClassName,\n    overlayStyle,\n    destroyPopupOnHide,\n    dropdownRender\n  };\n  const {\n    compactSize,\n    compactItemClassnames\n  } = useCompactItemContext(prefixCls, direction);\n  const classes = classNames(buttonPrefixCls, compactItemClassnames, className, hashId);\n  if ('overlay' in props) {\n    dropdownProps.overlay = overlay;\n  }\n  if ('open' in props) {\n    dropdownProps.open = open;\n  }\n  if ('placement' in props) {\n    dropdownProps.placement = placement;\n  } else {\n    dropdownProps.placement = direction === 'rtl' ? 'bottomLeft' : 'bottomRight';\n  }\n  const leftButton = /*#__PURE__*/React.createElement(Button, {\n    type: type,\n    danger: danger,\n    disabled: disabled,\n    loading: loading,\n    onClick: onClick,\n    htmlType: htmlType,\n    href: href,\n    title: title\n  }, children);\n  const rightButton = /*#__PURE__*/React.createElement(Button, {\n    type: type,\n    danger: danger,\n    icon: icon\n  });\n  const [leftButtonToRender, rightButtonToRender] = buttonsRender([leftButton, rightButton]);\n  return wrapSSR( /*#__PURE__*/React.createElement(Space.Compact, Object.assign({\n    className: classes,\n    size: compactSize,\n    block: true\n  }, restProps), leftButtonToRender, /*#__PURE__*/React.createElement(Dropdown, Object.assign({}, dropdownProps), rightButtonToRender)));\n};\nDropdownButton.__ANT_BUTTON = true;\nexport default DropdownButton;"],"mappings":"AAAA,IAAIA,MAAM,GAAG,IAAI,IAAI,IAAI,CAACA,MAAM,IAAI,UAAUC,CAAC,EAAEC,CAAC,EAAE;EAClD,IAAIC,CAAC,GAAG,CAAC,CAAC;EACV,KAAK,IAAIC,CAAC,IAAIH,CAAC,EAAE,IAAII,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAACP,CAAC,EAAEG,CAAC,CAAC,IAAIF,CAAC,CAACO,OAAO,CAACL,CAAC,CAAC,GAAG,CAAC,EAAED,CAAC,CAACC,CAAC,CAAC,GAAGH,CAAC,CAACG,CAAC,CAAC;EAChG,IAAIH,CAAC,IAAI,IAAI,IAAI,OAAOI,MAAM,CAACK,qBAAqB,KAAK,UAAU,EAAE,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEP,CAAC,GAAGC,MAAM,CAACK,qBAAqB,CAACT,CAAC,CAAC,EAAEU,CAAC,GAAGP,CAAC,CAACQ,MAAM,EAAED,CAAC,EAAE,EAAE;IAC3I,IAAIT,CAAC,CAACO,OAAO,CAACL,CAAC,CAACO,CAAC,CAAC,CAAC,GAAG,CAAC,IAAIN,MAAM,CAACC,SAAS,CAACO,oBAAoB,CAACL,IAAI,CAACP,CAAC,EAAEG,CAAC,CAACO,CAAC,CAAC,CAAC,EAAER,CAAC,CAACC,CAAC,CAACO,CAAC,CAAC,CAAC,GAAGV,CAAC,CAACG,CAAC,CAACO,CAAC,CAAC,CAAC;EACnG;EACA,OAAOR,CAAC;AACV,CAAC;AACD,OAAOW,gBAAgB,MAAM,6CAA6C;AAC1E,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,OAAOC,MAAM,MAAM,WAAW;AAC9B,SAASC,aAAa,QAAQ,oBAAo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